<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" isELIgnored="false" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<script src="<%=basePath%>resources/js/common/plugin/bootstrap/js/bootstrap-validation.js"></script>


<title>新增车辆信息</title>

<style type="text/css"> 
.modal-table{width:100%;}
.modal-table tr{line-height:35px;}
.modal-table th{width:15%;text-align:right;padding-right:10px;font-weight: normal;line-height:35px;}
.modal-table td{width:35%;line-height:35px;}
input{
	padding-left:10px;
}
.list {
    width: 100px;
    padding: 5px 0;
    text-align: center;
}
.keche{
	display : none;
}
.huoche{
	display : none;
}
#inputStartDate,#inputEndDate{
	width:150px;
	margin-top:3px;
}
#vehicleNo,#linkMan,#telePhone{
	width:208px !important;
}
.vehicleInput{height: 24px !important;width:208px;line-height:24px;}
.textbox.combo{width:208px !important;}
</style> 
<script type="text/javascript">
var vehicleId = '${vehicleId}';
var action = '${action}';
var vehicle =${vehicle};
$.fn.combobox.defaults.filter = function(q, row){  
    var opts = $(this).combobox('options');  
    return row[opts.textField].indexOf(q) >= 0;  
}  ;
</script>
</head>
<body>
<div id="vehicleForm" style='width:auto'>
			<div id="baseInfoDiv" class="pr">
			<input type="hidden" id="action" name="action" value="${action}"/>
			<table class="modal-table">
            <tr>
                <th>车牌号码：</th>
                <td>
                    <input name="vehicleNo" id="vehicleNo" style='margin-top:5px' class="vehicleInput" placeholder="请输入车牌号码" />
                    <span id="namemsg"><font style="color:#f00;margin-left:3px">*</font></span>
                </td>
                <th>车牌颜色：</th>
                <td>
                    <input class="vehicleInput" name="colorId" id="vehicleColor" />
                    <span id="namemsg" style='206px'><font style="color:#f00;margin-left:3px">*</font></span>
                </td>
            </tr>

            <tr>
                <th> 所属行业： </th>
                <td>
                    <input class="vehicleInput" name="tradeId" id="trade" />
                    <span id="namemsg"><font style="color:#f00;margin-left:3px">*</font></span>
                </td>
                <th>经营范围：</th>
                <td >
                    <input class="vehicleInput" id="BusinessScopeCode" name="BusinessScopeCode"  />
                </td>
            </tr>
            <tr>
             	<th>所属业户：</th>
                <td >
                    <input class="vehicleInput" name="enterpriseId" id="EnterpriseID"  />
                     <span id="namemsg"><font style="color:#f00;margin-left:3px">*</font></span>
                </td>
                <th>道路运输证号：</th>
                <td>
                    <input style="width:33px;padding-left:8px;height:24px;" id="province"  value="冀"  name='province'/>
                    <span>交运管许可</span>
                    <input style="width:33px;padding-left:8px;height:24px;" id="city" value="" name ='city' />
                    <span>字</span>
                    <input style='width:151px;padding-left:8px;height:24px;' class='placeholder'  name="transportPermitsion" placeholder="请输入数字" id="RoadTransportNum"  onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" />
                    <span>号</span><font style="color:#f00;">*</font>
                </td>
            </tr>
            <tr>
            	<th>发证机关：</th>
                <td>
                    <input class="vehicleInput" name="organzationId" id="OrganizationID" />
                </td>
                <th>证件有效期：</th>
                <td>
                    <input type="text" id="inputStartDate" class="query-input fl Wdate Time_input" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"name='startTime' >
                	<span class="fl" style="margin-left: 5px;margin-right: 5px;">至</span>
                    <input type="text" id="inputEndDate" class="query-input fl Wdate Time_input" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" name='endTime'>
                </td>
            </tr>
            <tr >
                <th >联系人：</th>
                <td >
                    <input class="vehicleInput" id="linkMan" name="linkMan"  placeholder="请输入联系人"/>
                </td>
  				<th >联系号码：</th>
                <td >
                    <input class="vehicleInput" id="telePhone" name="telePhone"  placeholder="请输入联系手机号码" />
                </td>
            </tr>
            <tr>
                <th>车载终端型号：</th>
                <td >
                    <input class="vehicleInput" id="VehTerminalID" name="teminalId" />
                </td>
                 <th>是否启用短信提醒：</th>
                <td >
                  <!--   <select class='query-select' id='sms'>
                    	<option value=0>停用</option>
                    	<option value=1>启用</option>
                    </select> -->
                     <input class="vehicleInput" id="sms" name="sms" />
                </td>
            </tr>
 			
            <tr>
                <th>车辆类型：</th>
                <td id="type">
                    <input class="vehicleInput" id="vehicleType" name="kindId" />
                </td>
                <th class="keche">客车等级：</th>
                <td class="keche">
                    <input class="vehicleInput" id="vehicleLevel"  name="vehicleLevel" value ="0">
                </td>
              
            </tr>
             <tr class="keche" colspan="3">
                <th class="keche"> 始发地：</th>
                <td class="keche">
                   <input name="origin" class="vehicleInput" id="Origin"value ="" /> 
                </td>
                <th class="keche">终点站：</th>
				<td class="keche">
                    <input name="destination" class="vehicleInput" id="Destination"value ="" />
                </td>
            </tr>
			<tr >
                <th class="keche">核定座位：</th>
                <td class="keche">
                    <input class="vehicleInput" id="approvedSeat" name="approvedSeat" value='0' />
                </td>
  				<th class="huoche">核定吨位：</th>
                <td class="huoche">
                    <input class="vehicleInput" id="approvedTonnage" name="approvedTonnage"  value='0' />
                </td>
            </tr>
          	<tr >
                <th>营运状态：</th>
                <td>
	               <select class="vehicleInput" id="status" name="status">
	                    <option value="0">正常</option>
	                    <option value="1">注销</option>
                    </select>
                </td>
  				<th class="huoche"></th>
                <td class="huoche">
                </td>
            </tr>
            
        </table>
			
			</div>
	
		</div>
		
	 <script src="<%=basePath%>resources/js/common/unitTreeQuery.js"></script>
	 <script src="<%=basePath%>resources/js/business/base/vehicle/addVehicleForm.js"></script> 
</body>
</html>